<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>测试</title>
</head>
<body>
<form action="/login" method="post">
    用户名<input name="username" type="text">
    用户名<input name="password" type="password">
    <input type="submit">
</form>

<form action="/logout" method="post">
    <input type="submit">
</form>

<button id="login">登陆</button>
</body>

<script src="/static/test/js/jquery-1.7.2.min.js"></script>
<script>
    $('#login').on('click', function (e) {
        //判断至少写了一项

        $.ajax({
            type: "POST",
            url: "/login",
//            url: "/fc/user/manage/center",
            row: {
                "username":"superadmin",
                "password":"superadmin"
            },
            dataType: "json",
            success:function (data) {
                alert(data);
                alert(data.statusCode);
            },

        })

    });
</script>

</html>